<html layout:decorator="public/layout" xmlns:layout="http://www.w3.org/1999/html">
<div layout:fragment="content">

    <!-- 表格工具栏 -->
    <form class="layui-form toolbar">
        <div class="layui-form-item">
            <div class="layui-inline">
                <div class="layui-input-inline">
                    <input type="text" name="title" placeholder="请输入日志标题" autocomplete="off" class="layui-input">
                </div>
            </div>
            <!-- 登录状态下拉单选 -->
            <div class="layui-inline">
                <div class="layui-input-inline">
                    <!-- 下拉单选 -->
                    <select id="status" name="status" lay-filter="select-status">
                        <option value="">请选择</option>
                        <option th:value="${item.key}" th:each="item: ${LOGINLOG_STATUS_LIST}" th:text="${item.value}"></option>
                    </select>
<!--                    <widget:singleSelect name="status|0|登录状态|name|id" th:data="${LOGINLOG_STATUS_LIST}" value="0"/>-->
                </div>
            </div>
            <!-- 类型下拉单选 -->
            <div class="layui-inline">
                <div class="layui-input-inline">
                    <!-- 下拉单选 -->
                    <select id="type" name="type" lay-filter="select-type">
                        <option value="">请选择</option>
                        <option th:value="${item.key}" th:each="item: ${LOGINLOG_TYPE_LIST}" th:text="${item.value}"></option>
                    </select>
<!--                    <widget:singleSelect name="type|0|类型|name|id" th:data="${LOGINLOG_TYPE_LIST}" value="0"/>-->
                </div>
            </div>
            <div class="layui-inline">
                <div class="layui-input-inline" style="width: auto;">
                    <button lay-submit lay-filter="searchForm" id="search" type="button" class="btnOption layui-btn layui-btn-normal">
                        <i class="layui-icon layui-icon-search"></i>
                        查询
                    </button>
<!--                    <widget:btnQuery name="查询"/>-->
<!--                    <widget:btnDAll shiro:hasPermission="sys:loginlog:dall" name="批量删除"/>-->
                </div>
            </div>
        </div>
    </form>

    <!-- 数据表格 -->
    <table class="layui-hide" id="tableList" lay-filter="tableList"></table>

    <!-- 表格操作列 -->
<!--    <script type="text/html" id="toolBar">-->
<!--        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>-->
<!--    </script>-->

    <!-- 状态 -->
    <script type="text/html" id="statusTpl">
        <input type="checkbox" name="status" value="{{ d.id }}" lay-skin="switch" lay-text="成功|失败" lay-filter="status" {{ d.status == 1 ? 'checked' : '' }} >
    </script>
</div>
</html>